grant_table: implement grant_table_warn_active_grants()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 10 Sep 2015 14:53:36 +0000 (16:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Sep 2015 14:53:36 +0000 (16:53 +0200)
commit502a592704ca782ba4fde0746464b68c52e6de7e
treebbd79bdfa1d88f5d36d8788223bc647b8c0c1987
parent546d558a7a3b7024638210f45b07fa340a5f109d
grant_table: implement grant_table_warn_active_grants()

Log first 10 active grants for a domain. This function is going to be used
for soft reset, active grants on this path usually mean misbehaving backends
refusing to release their mappings on shutdown. We need that in addition to
the already existent 'g' keyhandler as such misbehaving backends can cause a
domain to crash right after the soft reset operation and 'g' option won't be
available in this case.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/grant_table.c
xen/include/xen/grant_table.h